From: Florian Müllner Date: Thu, 20 Feb 2020 15:03:54 +0000 (+0100) Subject: status/keyboard: Check for monkey-patched property before using it X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~772^2^2~77 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ee6635282c4cd03421758477e8998b86fd58970c;p=gnome-shell.git status/keyboard: Check for monkey-patched property before using it This avoid another "reference to undefined property" warning. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1035 --- diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 2f0ab94f0..b2e16bc48 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -715,7 +715,8 @@ var InputSourceManager = class { if (!window) return; - if (window._inputSources != this._inputSources) { + if (!window._inputSources || + window._inputSources !== this._inputSources) { window._inputSources = this._inputSources; window._currentSource = this._getNewInputSource(window._currentSource); }